<?php
class Block_Core_Main_Content
    extends Block_Core_Text
{
    protected $_sidebar = null;

    protected $_jsName = null;

    public function setSidebar($sidebar)
    {
        $this->_sidebar = new $sidebar();
        $this->_sidebar->setJsName($this->_jsName);
        return $this;
    }

    public function getSidebar()
    {
        return $this->_sidebar;
    }

    public function getSidebarHtml()
    {
        $this->_sidebar->toHtml();
    }

    public function setJsName($name)
    {
        $this->_jsName = $name;
        return $this;
    }

    public function getJsName()
    {
        return $this->_jsName;
    }
}